import { http } from '@/utils/http'

export const getCustomerListAPI = (data: any) => {
  return http<any[]>({
    method: 'GET',
    url: '/mobile/customer/customer/list',
    data,
  })
}
export const getCustomerLogListAPI = (data: any) => {
  return http<any[]>({
    method: 'GET',
    url: '/mobile/customer/customer/customerLog/list',
    data,
  })
}

export const getCustomerAPI = (customerId: number | string) => {
  return http<any[]>({
    method: 'GET',
    url: '/mobile/customer/customer/' + customerId,
  })
}

export const postCustomerAPI = (data: any) => {
  return http<any[]>({
    method: 'POST',
    url: '/mobile/customer/customer',
    data,
  })
}

export const putCustomerAPI = (data: any) => {
  return http<any[]>({
    method: 'PUT',
    url: '/mobile/customer/customer',
    data,
  })
}
